package com.kasax.skin2;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.kasax.skin.support.corel.SkinManager;


public class CustomSkinActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_skin);

        setTitle("个性化换肤");
    }

    public void handleChangeSkin(View view) {
        Toast.makeText(this, "换肤", Toast.LENGTH_SHORT).show();
        String path = AppConst.getSkinApkFile(this).getPath();
        SkinManager.getInstance().loadSkin(path);
    }

    public void handleRestoreSkin(View view) {
        Toast.makeText(this, "换肤", Toast.LENGTH_SHORT).show();
        SkinManager.getInstance().loadSkin(null);
    }




}